package tp.pr5.mv.instructions.arithmetic;

import tp.pr5.mv.Opcode;
import tp.pr5.mv.instructions.BinaryInstructions;
import tp.pr5.mv.traps.MVTrap;

public class SUB extends BinaryInstructions {

	 public SUB() {
			
			op = Opcode.SUB;
		}
	
	public int combine ( int op1, int op2 ) throws MVTrap {
		
		return op2 - op1;       // Resta de operandos.
	}
	
}
